import 'package:flutter/material.dart';
import 'package:itoken/Components/CRouter.dart';
import 'package:itoken/Pages/PImport.dart';

class PImportType extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("导入钱包"),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            RaisedButton(
              onPressed: () {
                CRouter.import(
                  type: ImportMold.Mnemonic,
                );
              },
              child: Text("助记词导入"),
            ),
            RaisedButton(
              onPressed: () {
                CRouter.import(
                  type: ImportMold.Private,
                );
              },
              child: Text("私钥导入"),
            ),
          ],
        ),
      ),
    );
  }
}
